Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SfM Expanding application #1718

Merged
merged 14 commits into from
Jul 19, 2024
Merged

Add SfM Expanding application #1718

merged 14 commits into from
Jul 19, 2024

Conversation

servantftechnicolor
Copy link
Contributor

  • New application for sfm expansion using an initial sfm solve (E.g. using sfmBootstrapping)

  • New objects for policies :

    • Expansion policy
    • Local BA policy
  • More modular approach to SFM to be able to change it's behavior more easily.

  • Extracted the various steps in different classes for better readability

{
Eigen::JacobiSVD<Mat3> USV(E, Eigen::ComputeFullU | Eigen::ComputeFullV);
Mat3 U = USV.matrixU();
// Vec3 d = USV.singularValues();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To remove if unused

sfm::ExpansionProcess::uptr expansionProcess = std::make_unique<sfm::ExpansionProcess>();
expansionProcess->setExpansionHistoryHandler(expansionHistory);
expansionProcess->setExpansionIterationHandler(expansionIteration);
/*expansionProcess->setExpansionIterationPostProcessHandler(expansionPostProcess);*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To remove if unused

Comment on lines +197 to +202
/*sfm::ExpansionPostProcess::uptr expansionPostProcess;
if (useRigConstraint)
{
sfm::ExpansionPostProcessRig::uptr expansionPostProcessTyped = std::make_unique<sfm::ExpansionPostProcessRig>();
expansionPostProcessTyped->setMinimalNumberCameras(minNbCamerasForRigCalibration);
expansionPostProcess = std::move(expansionPostProcessTyped);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To remove if unused

@@ -385,8 +331,8 @@ int aliceVision_main(int argc, char** argv)
bestUsedTracks = usedTracks;
}
}

if (!buildSfmData(sfmData, bestPair, mapTracks, bestUsedTracks))

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trailing whitespace

@@ -0,0 +1,92 @@
// This file is part of the AliceVision project.
// Copyright (c) 2023 AliceVision contributors.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2024

@@ -0,0 +1,180 @@
// This file is part of the AliceVision project.
// Copyright (c) 2023 AliceVision contributors.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2024

@@ -0,0 +1,86 @@
// This file is part of the AliceVision project.
// Copyright (c) 2023 AliceVision contributors.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2024

@@ -0,0 +1,199 @@
// This file is part of the AliceVision project.
// Copyright (c) 2023 AliceVision contributors.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2024

@@ -0,0 +1,228 @@
// This file is part of the AliceVision project.
// Copyright (c) 2023 AliceVision contributors.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2024

@@ -0,0 +1,221 @@
// This file is part of the AliceVision project.
// Copyright (c) 2023 AliceVision contributors.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2024

@cbentejac cbentejac merged commit 0a7a7d7 into develop Jul 19, 2024
2 of 4 checks passed
@cbentejac cbentejac deleted the dev/sfmExpanding branch July 19, 2024 10:51
@cbentejac cbentejac changed the title sfm Expanding application Add SfM Expanding application Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants